package com.ambition.mallchat.common.user.service;

//import cn.hutool.core.util.RandomUtil;
//import com.abin.mallchat.common.common.constant.MQConstant;
//import com.abin.mallchat.common.common.constant.RedisKey;
//import com.abin.mallchat.common.common.domain.dto.LoginMessageDTO;
//import com.abin.mallchat.common.common.domain.dto.ScanSuccessMessageDTO;
//import com.abin.mallchat.common.common.utils.RedisUtils;
//import com.abin.mallchat.common.user.dao.UserDao;
//import com.abin.mallchat.common.user.domain.entity.User;
//import com.abin.mallchat.common.user.service.adapter.TextBuilder;
//import com.abin.mallchat.common.user.service.adapter.UserAdapter;
//import com.abin.mallchat.transaction.service.MQProducer;
import lombok.extern.slf4j.Slf4j;
import me.chanjar.weixin.common.bean.WxOAuth2UserInfo;
import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.dao.DuplicateKeyException;
import org.springframework.stereotype.Service;

import java.net.URLEncoder;
import java.util.Objects;
import java.util.concurrent.TimeUnit;

/**
 * Description: 处理与微信api的交互逻辑
 * Author: <a href="https://github.com/zongzibinbin">abin</a>
 * Date: 2023-03-19
 */

public interface WxMsgService {

    WxMpXmlOutMessage scan(WxMpService weixinService, WxMpXmlMessage wxMessage);

    void authorize(WxOAuth2UserInfo userInfo);
}
